/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: fsl ifc nand driver Vendor Hooks
 */

#ifdef CONFIG_NETBIOS_FSL_NAND_DFX

#ifndef FSL_NAND_EXT_H
#define FSL_NAND_EXT_H
#include <linux/module.h>
#include <linux/mtd/rawnand.h>
void trace_fsl_setup_muti_nand_info(struct platform_device *dev,
	struct nand_chip *chip, int max_chip);
void trace_fsl_ifc_mutichip_probe(struct platform_device *dev,
	int *chips, int *maxchips);
void trace_fsl_ifc_select_chip(int *chips, int *bank, int cs);
int trace_ctrl_nand_stat(unsigned int nand_stat);
void trace_fsl_ifc_run_command(unsigned int command, unsigned int nand_stat, unsigned int page);
#endif

#else
struct platform_device;
struct nand_chip;

static inline void trace_fsl_setup_muti_nand_info(struct platform_device *dev,
	struct nand_chip *chip, int max_chip)
{
}

static inline void trace_fsl_ifc_mutichip_probe(struct platform_device *dev,
	int *chips, int *maxchips)
{
}

static inline void trace_fsl_ifc_select_chip(int *chips, int *bank, int cs)
{
}
static inline int trace_ctrl_nand_stat(unsigned int nand_stat)
{
	return 0;
}
static inline void trace_fsl_ifc_run_command(unsigned int command, unsigned int nand_stat,
	unsigned int page)
{
}
#endif
